package com.gao.mybatis.pojo;

import java.util.List;

/**
 * @Projectname SSM
 * @Filename Dept
 * @Author an
 * @Data 2022/7/29 13:50
 * @Description TODO
 */
public class Dept {
    private Integer deptId;

    private String DeptName;

    private List<Emp> emps;

    public Dept(Integer deptId, String deptName) {
        this.deptId = deptId;
        DeptName = deptName;
    }

    public Dept() {
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return DeptName;
    }

    public void setDeptName(String deptName) {
        DeptName = deptName;
    }

    public List<Emp> getEmps() {
        return emps;
    }

    public void setEmps(List<Emp> emps) {
        this.emps = emps;
    }

    //    @Override
//    public String toString() {
//        return "Dept{" +
//                "deptId=" + deptId +
//                ", DeptName='" + DeptName + '\'' +
//                '}';
//    }


    @Override
    public String toString() {
        return "Dept{" +
                "deptId=" + deptId +
                ", DeptName='" + DeptName + '\'' +
                ", emps=" + emps +
                '}';
    }
}
